<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">使用状态:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="fenableList" item="vo"}
                <label for="row[fenable]-{$key}"><input id="row[fenable]-{$key}" name="row[fenable]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">数据中心/组织:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-inline" data-toggle="cxselect" data-selects="first,second">
                <select class="first form-control" name="row[fk_bdl_bd_datacenter]" data-url="bdl/bd/datacenter/getFilter?type=get_datacenter_list_for_form_select"></select>
                <select class="second form-control" name="row[forgid]" data-url="bdl/bd/datacenter/getFilter?type=get_org_list_for_form_select" data-query-name="fk_bdl_bd_datacenter"></select>
            </div>

        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fname" class="form-control" name="row[fname]" type="text">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">编码:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fnumber" class="form-control" name="row[fnumber]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">备注:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fk_bdl_comment" class="form-control" name="row[fk_bdl_comment]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">图片:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-fk_bdl_image" class="form-control" size="50" name="row[fk_bdl_image]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-fk_bdl_image" class="btn btn-danger faupload" data-input-id="c-fk_bdl_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-fk_bdl_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-fk_bdl_image" class="btn btn-primary fachoose" data-input-id="c-fk_bdl_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-fk_bdl_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-fk_bdl_image"></ul>
        </div>
    </div>




    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">跳转类型:</label>
        <div class="col-xs-12 col-sm-8">
            <select  data-live-search="true"  title="没有选中任何项" id="c-type" class="form-control selectpicker" name="row[fk_bdl_jumptype]">
                {foreach name='typeList' item='vo'}
                <option value="{$key}">{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>


    <div class="form-group banner-add-url">
            <label class="control-label col-xs-12 col-sm-2">跳转链接:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-fk_bdl_url" class="form-control" name="row[fk_bdl_url]" type="text">
            </div>
    </div>

    <div class="form-group banner-add-object_id">
        <label class="control-label col-xs-12 col-sm-2">小程序跳转商品id:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fk_bdl_bd_material" class="form-control" name="row[fk_bdl_bd_material]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">权重:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fk_bdl_weight" class="form-control" name="row[fk_bdl_weight]" type="number">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">确定</button>
            <button type="reset" class="btn btn-default btn-embossed">重置</button>
        </div>
    </div>

</form>
